home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7062 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  48 lines

  1. Path: mail2news.demon.co.uk!beachyhd.demon.co.uk
  2. From: Adam@beachyhd.demon.co.uk
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Refreshing MX gadgets
  5. Date: 08 Apr 96 17:33:54 GMT
  6. Organization: Beachy Head - UK
  7. Message-ID: <3169a262@beachyhd.demon.co.uk>
  8. X-NNTP-Posting-Host: beachyhd.demon.co.uk
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-GateSoftware: AmiGate 1.6 (13.11.95)
  13. MMDF-Warning:  Parse error in original version of preceding line at relay-2.mail.demon.net
  14. X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!beachyhd.demon.co.uk
  15.  
  16. Hi all,
  17.  
  18. I'm having a few problems with MX type GadTools gadgets.
  19.  
  20. I have two MX gadgets, the second of which must contain different items
  21. depending upon which item is selected in the first. When the first item is
  22. changed, the list of items in the second is to immediately update to show the
  23. items that are now available for it.
  24.  
  25. Now I understand that it's not possible to change the labels for the MX gadget
  26. once it has been created, so instead I'm removing the entire gadget list for
  27. the window and recreating it with the new labels. This works, *BUT* I can't get
  28. it to redraw the changed MX gadget. The imagery stays exactly as it was. If I
  29. click on one of the radio buttons, the text for that button will update (and
  30. the radio button will appear if it wasn't already visible). But how can I make
  31. this happen automatically?
  32.  
  33. I've tried calling GT_RefreshWindow() after recreating the gadgets, and that
  34. doesn't work. I've tried calling RefreshGList() (telling it to update only 1
  35. gadget, that being my MX gadget -- I assume this doesn't work because GadTools
  36. gadgets consist of a number of intuition gadgets?). None of this seems to work.
  37.  
  38. Can /anyone/ help me to get this to work?
  39.  
  40. Thanks!
  41.  
  42.  
  43. #include <stdio.h>/*Adam Dawes,ad32@brighton.ac.uk,Adam Dawes@2:441/93.5*/
  44. int main(){char d[]="DEICEHIBEAHAJBJBJAJIAEFFHAHJAHJAHJHJIECHAHKGHFGHCGII"
  45. ,s[]=" /-)| \\_",*p=d,c;s[5]=10;while (*p){c=*p++^=64;if(c<5)for(;c>0;c--)
  46. putchar(*s);else putchar(*(s+c-4));}return(0);}/*C sig by Adam Dawes '95*/
  47.  
  48.